import java.util.ArrayList;


public class Director extends Muncitor{
	
	private static Director instanta; 
	public ArrayList<Muncitor> employee;
	
	
	private Director(String nume){
	super(nume);
	this.employee=new ArrayList<Muncitor>(10);
	this.d=null;
}
	
	
	private Director(String nume,int nrAngajati){
	super(nume);
	this.employee=new ArrayList<Muncitor>(nrAngajati);
	this.d=null;
}
	
	
	private Director(String nume,Muncitor m)
	{
	super(nume);
	this.employee=new ArrayList<Muncitor>(10);
	this.d=null;
	this.adaugaMuncitor(m);
}
	
	public static synchronized  Director getInstance() throws Exception{
	Director d=null;
	if(instanta==null){
		d=new Director("Ion");
		instanta=d;
	}
	else{
		DirectorsException de=new DirectorsException();
		throw de;
	}
	return d;
}
	
	public void adaugaMuncitor(Muncitor m){
	this.employee.add(m);
}
}

